Returns translation for the <span class="argument">phrase</span>.

<div class="definition">
    lang(phrase, params);
</div>
<div class="arguments">
    <table>
    <tr>
        <td>phrase</td>
        <td><b>string</b>, phrase to translate</td>
    </tr>
    <tr>
        <td>params</td>
        <td><b>object</b>, values to be replaces</td>
    </tr>
    </table>
</div>

If you have provided translations for your locale, you can use this method to find translated phrases. All translations are stored in
<span class="method">w2utils.settings.phrases</span> and loaded with <a class="method" href="w2utils.locale">.locale()</a>

<textarea class="javascript">
// simple text
console.log(w2utils.lang('Today'))

// text with variables
console.log(w2utils.lang("Are you sure you want to delete ${count} records", { count: 10 }))
</textarea>